package cn.yitun.chat.yitunservercommonlib.dataentity.dto.system.user;

import cn.yitun.chat.yitunservercommonlib.crud.yitun.BaseDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.system.user.UserInfo;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class ResetPwdDto extends BaseDto<UserInfo> {

    private String account ;

    private String name ;

    private String  oldPassword ;

    private String  newPassword ;

    private String  comfirnNewPwd ;

    public ResetPwdDto(String account , String  newPwd , String  comfirnNewPwd ){
        this.account = account ;
        this.newPassword = newPwd ;
        this.comfirnNewPwd = comfirnNewPwd;
    }

    public ResetPwdDto(String account , String  oldPwd , String  newPwd , String  comfirnNewPwd ){
        this.account = account ;
        this.oldPassword = oldPwd ;
        this.newPassword = newPwd ;
        this.comfirnNewPwd = comfirnNewPwd;
    }

}
